package com.sec.android.app.myfiles.module.optimizestorage;

import android.content.Context;
import android.content.Intent;

import com.sec.android.app.myfiles.activity.GetMoreSpaceActivity;
import com.sec.android.app.myfiles.info.AppConstants;

import org.puremvc.java.multicore.interfaces.INotification;
import org.puremvc.java.multicore.patterns.command.SimpleCommand;

/**
 * Created by daesu83.kim on 2016-10-07.
 */
public class LaunchOptimizeStorageCmd extends SimpleCommand {

    @Override
    public void execute(INotification notification) {
        Object[] params = (Object[]) notification.getBody();
        Context context = (Context) params[0];

        if (context != null) {
//            SamsungAnalyticsLog.sendLog(SamsungAnalyticsLog.Event.GET_MORE_SPACE, SamsungAnalyticsLog.getScreenPath(), null);	// TODO : HJ SA
            Intent gms = new Intent(context, GetMoreSpaceActivity.class);
            context.startActivity(gms);
        }
    }
}
